<?php defined( '_JEXEC' ) or die( 'Restricted access' ); include_once (dirname(__FILE__).DS.'/ja_vars.php');
$menu = & JSite::getMenu();
$isFront = false;
if ($menu->getActive() == $menu->getDefault()) $isFront = true;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
<head>
<jdoc:include type="head" />
<!--link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" /-->
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />


<!--script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script-->

<!--[if lt IE 10]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body id="bd">
	<div id="bd_center">

<!-- 开始：正文 -->
<div id="main">
<!-- 开始：头部 -->
<div id="header">
	<a id="logo"></a>
	<div class="clr"></div>
    
	<div class="clr"></div>
    <div id="breadcrumbs"><jdoc:include type="modules" name="breadcrumbs" /></div>
</div>
<div id="topmenu"><jdoc:include type="modules" name="top" /></div>
<!-- 结束：头部 -->

<!-- 开始：主体部分 -->
<div id="content">
	<?php if ($isFront):?>
	<div id="content_top"><jdoc:include type="modules" name="user1" /></div>
	<?php else:?>
    <!--div id="breadcrumb"><jdoc:include type="modules" name="user2" /></div-->
    <?php endif;?>
    <div class="clr"></div>
	
    <div id="content_left" class="left <?php if (!$isFront):?>content_wrap<?php endif;?>">
    	<?php if ($isFront):?>
    	<jdoc:include type="modules" name="left" />
        <?php else: ?>
        <jdoc:include type="component" />
        <?php endif;?>
    </div>
    <?php if ($isFront):?>
    <div id="content_right" class="right <?php if (!$isFront):?>content_right<?php endif;?>">
    	<jdoc:include type="modules" name="right" style="xhtml" />
    </div>
    <?php endif;?>
    <div class="clr"></div>
</div>
<!-- 结束：主体部分 -->

</div>
<!-- 结束：正文 -->

</div><!-- 结束 #bd_center-->
    
    
<!-- 开始：底部 -->
<div id="footer">
	<div id="footer_l"></div>
   	<div id="footer_r"></div>
    <div id="footer_c">
    <jdoc:include type="modules" name="footer" />
    </div>
    
</div>
<!-- 结束：底部 -->
</body>

</html>